package com.zhonghui.dto;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author: FL
 * @create: 2024 2024/5/26 17:26
 */
@Data
public class ProductCreateDto implements Serializable {
    private Long id; // 添加这一行
    @NotBlank(message = "商品名不能为空")
    private String name;
    private String subTitle;
    private String mainImage;
    private List<String> subImages;
    private String activityName;
    private Long subCategoryId;
    @Min(value = 0,message = "价格不能小于0")
    private BigDecimal price;
    @Min(value = 0,message = "库存不能小于0")
    private Integer stock;
    private Object param;
    private String detail;
    private Boolean status;
    private Boolean hotFlag;
}
